package cn.iocoder.yudao.module.crossborder.order.controller.admin.orderreturn.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 跨境电商退换货申请 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderReturnRespVO {

    @Schema(description = "退换货编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25190")
    @ExcelProperty("退换货编号")
    private Long id;

    @Schema(description = "退换货单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("退换货单号")
    private String returnNo;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28348")
    @ExcelProperty("订单编号")
    private Long orderId;

    @Schema(description = "订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单号")
    private String orderNo;

    @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11041")
    @ExcelProperty("客户编号")
    private Long customerId;

    @Schema(description = "类型（1退货 2换货 3退款）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("类型（1退货 2换货 3退款）")
    private Integer returnType;

    @Schema(description = "退换货原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不香")
    @ExcelProperty("退换货原因")
    private String returnReason;

    @Schema(description = "原因描述")
    @ExcelProperty("原因描述")
    private String returnReasonDesc;

    @Schema(description = "退换货总数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("退换货总数量")
    private BigDecimal totalQuantity;

    @Schema(description = "退换货总金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("退换货总金额")
    private BigDecimal totalAmount;

    @Schema(description = "退款金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("退款金额")
    private BigDecimal refundAmount;

    @Schema(description = "货币代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("货币代码")
    private String currencyCode;

    @Schema(description = "状态（10待审核 20已同意 30已拒绝 40待退货 50已退货 60已收货 70已退款 80已完成）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态（10待审核 20已同意 30已拒绝 40待退货 50已退货 60已收货 70已退款 80已完成）")
    private Integer returnStatus;

    @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("申请时间")
    private LocalDateTime applyTime;

    @Schema(description = "审批时间")
    @ExcelProperty("审批时间")
    private LocalDateTime approveTime;

    @Schema(description = "审批人")
    @ExcelProperty("审批人")
    private String approveUser;

    @Schema(description = "审批备注", example = "你猜")
    @ExcelProperty("审批备注")
    private String approveRemark;

    @Schema(description = "退货截止时间")
    @ExcelProperty("退货截止时间")
    private LocalDateTime returnDeadline;

    @Schema(description = "退货地址编号", example = "31010")
    @ExcelProperty("退货地址编号")
    private Long returnAddressId;

    @Schema(description = "退货配送方式")
    @ExcelProperty("退货配送方式")
    private String returnShippingMethod;

    @Schema(description = "退货运单号")
    @ExcelProperty("退货运单号")
    private String returnTrackingNo;

    @Schema(description = "退货发货时间")
    @ExcelProperty("退货发货时间")
    private LocalDateTime returnShipTime;

    @Schema(description = "退货收货时间")
    @ExcelProperty("退货收货时间")
    private LocalDateTime returnReceiveTime;

    @Schema(description = "质检结果")
    @ExcelProperty("质检结果")
    private String qualityCheckResult;

    @Schema(description = "质检时间")
    @ExcelProperty("质检时间")
    private LocalDateTime qualityCheckTime;

    @Schema(description = "质检员")
    @ExcelProperty("质检员")
    private String qualityCheckUser;

    @Schema(description = "退款方式")
    @ExcelProperty("退款方式")
    private String refundMethod;

    @Schema(description = "退款时间")
    @ExcelProperty("退款时间")
    private LocalDateTime refundTime;

    @Schema(description = "退款交易ID", example = "19337")
    @ExcelProperty("退款交易ID")
    private String refundTransactionId;

    @Schema(description = "客户留言")
    @ExcelProperty("客户留言")
    private String customerMessage;

    @Schema(description = "内部备注")
    @ExcelProperty("内部备注")
    private String internalNotes;

    @Schema(description = "附件URL列表JSON")
    @ExcelProperty("附件URL列表JSON")
    private String attachments;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
